package com.woniuxy.mapper;

import com.woniuxy.entity.FoodCollection;
import com.woniuxy.entity.FoodCollectionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
@ClassName FoodCollectionMapper
@author Hgx
@create 2020-06-01 10:51
*/
public interface FoodCollectionMapper {
    long countByExample(FoodCollectionExample example);

    int deleteByExample(FoodCollectionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(FoodCollection record);

    int insertSelective(FoodCollection record);

    List<FoodCollection> selectByExample(FoodCollectionExample example);

    FoodCollection selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") FoodCollection record, @Param("example") FoodCollectionExample example);

    int updateByExample(@Param("record") FoodCollection record, @Param("example") FoodCollectionExample example);

    int updateByPrimaryKeySelective(FoodCollection record);

    int updateByPrimaryKey(FoodCollection record);

    /**
     * 查询该用户美食所有收藏
     * @param userId
     * @return
     */

    List<FoodCollection> selectAllCollection(int userId);
}